#include "PCH.h"
#include "DeRenderResource.h"
using namespace DeviousRenderer;

DeRenderResource::DeRenderResource()
	: m_bIsInitialized(false)
{

}

DeRenderResource::~DeRenderResource()
{

}

void DeRenderResource::Initialize()
{
	if (!m_bIsInitialized)
	{
		InitResource();
		m_bIsInitialized = true;
	}
}

void DeRenderResource::Release()
{
	if (m_bIsInitialized)
	{
		ReleaseResource();
		m_bIsInitialized = false;
	}
}